﻿using System;
using System.Data;
using System.Collections.Generic;

using System.Text;
using KPIS.GERP.ESS.MODEL;
using KPIS.GERP.ESS.DAL;

namespace KPIS.GERP.ESS.BLL
{
    public class B_IcmMasResourceItem
    {
        ConvertNullable.ConvertNullable cn = new ConvertNullable.ConvertNullable();
        private static readonly D_IcmMasResourceItem dal = new D_IcmMasResourceItem();
        //D_FIM_MAS_Receives r = new D_FIM_MAS_Receives();

        public B_IcmMasResourceItem()
        {

        }

        public DataRow GetInfo(string seq)
        {
            int nSeq;

            if (seq == null)
                return null;

            if (cn.IsNumeric(seq))
            {
                nSeq = int.Parse(seq);
                return dal.GetInfo(nSeq);
            }
            else
            {
                return null;
            }
        }
    }
}
